package com.aliyun.heiyu.powermaster.server.rotary.service;

import com.aliyun.heiyu.powermaster.proto.*;

public interface AlgorithmService {
    /**
     * 算法详情
     * @param request
     * @return
     */
    AlgorithmReply queryAlgorithmById(AlgorithmRequest request);

    /**
     * 查询算法列表
     * @param request
     * @return
     */
    AlgorithmsReply queryAlgorithms(AlgorithmsRequest request);

    /**
     * 删除算法
     * @param request
     * @return
     */
    CommonReply deleteAlgorithm(AlgorithmRequest request);

    /**
     * 添加算法
     * @param request
     * @return
     */
    CommonReply addAlgorithm(AlgorithmRequest request);

    /**
     * 修改算法
     * @param request
     * @return
     */
    CommonReply updateAlgorithm(AlgorithmRequest request);

    /**
     * 算法开关
     * @param request
     * @return
     */
    CommonReply updateAlgorithmSwitch(AlgorithmRequest request);
}
